package com.xbxkj.controller;

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.util.List;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableEurekaClient
//扫描公共模块下的包     注入注解
@EnableFeignClients(basePackages = {"com.xbxkj.fegin"})
@ComponentScan(basePackages = {"com.xbxkj.controller","com.xbxkj.fegin"})
@ServletComponentScan(value = {"com.xbxkj.controller.config"})
public class ControllerClient   {

    public static void main(String[] args) {
        SpringApplication.run(ControllerClient.class, args);
    }

}
